package com.lovo.ssc.service.impl;

import com.lovo.dto.ReturnOrderDto;
import com.lovo.ssc.bean.Returnorderhandle;
import com.lovo.ssc.dto.HandleOrderDto;
import com.lovo.ssc.mapper.ReturnorderhandleMapper;
import com.lovo.ssc.service.IReturnorderhandleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lovo
 * @since 2022-07-11
 */
@Service
@Slf4j
public class ReturnorderhandleServiceImpl extends ServiceImpl<ReturnorderhandleMapper, Returnorderhandle> implements IReturnorderhandleService {

	@Override
	public List<HandleOrderDto> findHandleOrderByState(String state) {

		return baseMapper.findHandleOrderByState(state);
	}

	@Override
	public void updateState(String code, String state) {
		baseMapper.updateState(code, state);
	}

	@Override
	public void updateOrderStatus(String orderCode) {
		baseMapper.updateOrderStatus(orderCode);
	}


}
